package net.lmc.realtime.jtp.jtprealtimeservice.service;

import net.lmc.realtime.jtp.jtprealtimeservice.bean.TrafficPvReport;
import net.lmc.realtime.jtp.jtprealtimeservice.bean.TrafficUvReport;
import net.lmc.realtime.jtp.jtprealtimeservice.mapper.TrafficChannelStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TrafficChannelStatsServiceImpl implements TrafficChannelStatsService{

    @Autowired
    TrafficChannelStatsMapper trafficChannelStatsMapper;

    @Override
    public List<TrafficUvReport> getUvCount(String date) {
        return trafficChannelStatsMapper.selectUvCount(date);
    }

    @Override
    public List<TrafficPvReport> getPvCount(String date) {
        return trafficChannelStatsMapper.selectPvCount(date);
    }
}
